import { defineComponent, onMounted, ref } from "vue";
import { useRouter } from 'vue-router'
import './style.scss'

export default defineComponent({
  name: 'SingerList',
  props: {
    refresh: {
      type: Function
    }
  },
  setup(props) {
    
    const userList = ref([])

    onMounted(() => {
      getHotSingerListRequest(0).then((res) => {
        userList.value = res.artists
        props.refresh()
      })
    })
    
  }
})